package com.lianxian.xindong.commonres.entity;

import com.hxb.library.base.BaseBean;

import java.util.List;

/**
 * @Author :hexingbo
 * @Date :2019/8/4
 * @FileName： MyHttpResult
 * @Describe :
 */
public class ResultBaseListBean<T> extends BaseBean {

    private int code;
    private String msg;
    private int total;
    private List<T> records;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> rows) {
        this.records = rows;
    }

    public boolean isSuccess() {
        return code == 200;
    }
}
